// wzjm.js
var AES_KEY = CryptoJS.enc.Utf8.parse("pmkt25y27gbjed5sdsazbkvo81t56344");

// 解密函数
function decryptPwd(cipherText) {
	var decrypted = CryptoJS.AES.decrypt({
			ciphertext: CryptoJS.enc.Base64.parse(cipherText)
		},
		AES_KEY, {
			mode: CryptoJS.mode.ECB,
			padding: CryptoJS.pad.Pkcs7
		}
	);
	return decrypted.toString(CryptoJS.enc.Utf8);
}

// 获取完整数据（解密后）
function getWebsiteData() {
	return wzxx.map(site => {
		let matched = wzmm.find(p => p.id === site.id);
		let plainPwd = matched ? decryptPwd(matched.pwd) : "-";
		return {
			id: site.id,
			url: site.url,
			name: site.name,
			account: site.account,
			password: plainPwd
		};
	});
}